<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>transform-origin</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    ul {
      width: 100px;
      height: 100px;
      border: 1px solid;
      margin: 50px auto;
    }

    ul li {
      width: 100px;
      height: 100px;
      /* 脱离文档流 都飘在上方 */
      position: absolute;
      /* 默认对角线的交点
      设置形变中心点：水平 垂直
      */
      transform-origin: 50px 100px;
    }

    ul li:nth-child(1) {
      background-color: lavenderblush;
      transform: rotate(30deg);

    }

    ul li:nth-child(2) {
      background-color: lemonchiffon;
      transform: rotate(45deg);

    }

    ul li:nth-child(3) {
      background-color: lightblue;
      transform: rotate(60deg);

    }
  </style>
</head>

<body>
  <ul>
    <li></li>
    <li></li>
    <li></li>
  </ul>

</body>

</html>